package dexter.core.client;

import dexter.core.common.InitResult;
import dexter.net.msg.common.ResponseListener;
import dexter.net.msg.common.ResponseParams;


public class InitListener implements ResponseListener {

	    private InitResult result = null;
	    
	    public boolean hasResult() {
	    	return result!=null;
	    }
	    
	    public InitResult getResult() {
	    	return result;
	    }
	
		public void errorArrive(ResponseParams result) {
			this.result = (InitResult) result;
			//System.out.println("PRODUCER> ERROR : "+netResult);

		}

		public void resultArrive(ResponseParams result) {
			this.result = (InitResult) result;
			//System.out.println("PRODUCER> RESULT : "+netResult);
		}

	}
